.class Lcom/a/a/g;
.super Ljava/lang/Object;
.source "WebSocketClient.java"

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:[B

.field final synthetic b:Lcom/a/a/d;


# direct methods
.method constructor <init>(Lcom/a/a/d;[B)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 260
    iput-object p1, p0, Lcom/a/a/g;->b:Lcom/a/a/d;

    iput-object p2, p0, Lcom/a/a/g;->a:[B

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 2

    .prologue
    .line 265
    :try_start_0
    iget-object v0, p0, Lcom/a/a/g;->b:Lcom/a/a/d;

    invoke-static {v0}, Lcom/a/a/d;->a(Lcom/a/a/d;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 266
    :try_start_1
    iget-object v0, p0, Lcom/a/a/g;->b:Lcom/a/a/d;

    invoke-static {v0}, Lcom/a/a/d;->e(Lcom/a/a/d;)Ljava/net/Socket;

    move-result-object v0

    if-nez v0, :cond_0

    .line 267
    monitor-exit v1

    .line 276
    :goto_0
    return-void

    .line 269
    :cond_0
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 270
    :try_start_2
    iget-object v0, p0, Lcom/a/a/g;->b:Lcom/a/a/d;

    invoke-static {v0}, Lcom/a/a/d;->e(Lcom/a/a/d;)Ljava/net/Socket;

    move-result-object v0

    invoke-virtual {v0}, Ljava/net/Socket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v0

    .line 271
    iget-object v1, p0, Lcom/a/a/g;->a:[B

    invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write([B)V

    .line 272
    invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_0

    .line 273
    :catch_0
    move-exception v0

    .line 274
    iget-object v1, p0, Lcom/a/a/g;->b:Lcom/a/a/d;

    invoke-static {v1}, Lcom/a/a/d;->g(Lcom/a/a/d;)Lcom/a/a/i;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/a/a/i;->onError(Ljava/lang/Exception;)V

    goto :goto_0

    .line 269
    :catchall_0
    move-exception v0

    :try_start_3
    monitor-exit v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :try_start_4
    throw v0
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
.end method
